package control.connector.impl;

import java.rmi.RemoteException;

import org.jdesktop.swingx.mapviewer.Waypoint;

import presentation.PMapPanel;


import connector.rmiServer.CentralClient;
import control.TaxaFactory;
import control.connector.Taxa;

public class ClientImpl implements CentralClient{
	
	public void setStatus(int taxaid,String status) throws RemoteException {
		Taxa taxa = TaxaFactory.getTaxa(taxaid);
		taxa.setStatus(status);
		taxa.notifyObservers();
	}

	public void updatePosition(int taxaid, long time, float lat, float lon)
			throws RemoteException {
		Taxa taxa = TaxaFactory.getTaxa(taxaid);
		taxa.setLatitude(lat);
		taxa.setLongtitude(lon);
		taxa.notifyObservers();
	}
}
